package cn.liwq.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 前端控制器
 *
 * @author liwq
 * @since 2018-11-20
 */
@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/list")
    public String getUserList(@RequestParam Integer type, @RequestParam String ticket) {
        System.out.println("type:" + type);
        System.out.println("ticket:" + ticket);
        return " tt-" + ticket;
    }
}
